import 'package:flutter/material.dart';

class ProfileIndexPage extends StatefulWidget {
  ProfileIndexPage({Key key}) : super(key: key);

  @override
  _ProfileIndexPageState createState() => _ProfileIndexPageState();
}

class _ProfileIndexPageState extends State<ProfileIndexPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Stack(
        alignment: Alignment.center,
        children: <Widget>[
          new Container(
            color: Colors.amber,
            height: 300,
          ),
          new Positioned(
            top: 60,
            width: 100,
            height: 100,
            child: ClipRRect(
              borderRadius: BorderRadius.circular(100.0),
              child: new Image.asset(
                'assets/images/swiper_1.jpeg',
                fit: BoxFit.fill,
              ),
            ),
          ),
          new Positioned(
            top: 180,
            child: new Column(
              children: <Widget>[
                new Container(
                  margin: EdgeInsets.only(bottom: 10),
                  child: Text(
                    '没有终点的旅程',
                    style: TextStyle(
                      fontSize: 20,
                      color: Colors.white,
                    ),
                  ),
                ),
                new Container(
                  child: Text(
                    '梦随心动 心随梦求',
                    style: TextStyle(
                      fontSize: 20,
                      color: Colors.white,
                    ),
                  ),
                )
              ],
            ),
          ),
          // new Container(
          //   margin: EdgeInsets.only(top: 100),
          //   color: Colors.black,
          //   child: Text(
          //     'asd',
          //   ),
          // )
        ],
      ),
    );
  }
}
